package com.ym.soso.domain.param;

import com.ym.common.annotations.CustomConstraint;
import com.ym.common.constant.BeanCovert;
import com.ym.base.enums.FlagEnum;
import com.ym.soso.domain.entity.OrgCommentRecordEntity;
import com.ym.soso.enums.SubjectTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 用户评价录入入参 org_comment_record
 *
 * @author ym
 * @date 2020-08-20
 */
@ApiModel("用户评价录入入参")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserEvaluationParam extends BeanCovert<OrgCommentRecordEntity>{

    @ApiModelProperty("评价记录主键")
    @NotNull
    private Long id;

    @ApiModelProperty("关联ID")
    private Long relId;

    @ApiModelProperty("关联类型 (01-医院 02-中医堂 03-药店 04-养老 05-体检 06-鼻炎馆 07-综合门诊 08-心理咨询)")
    @CustomConstraint(SubjectTypeEnum.class)
    private String relType;

    @ApiModelProperty("评价内容")
    private String content;

    @ApiModelProperty("评价星数")
    private Long starNum;

    @ApiModelProperty("图片")
    private String pic;

    @ApiModelProperty("是否匿名(01-是 00-否)")
    @CustomConstraint(FlagEnum.class)
    private String anony;

    @ApiModelProperty("标签库主键")
    private Long[] tagIds;

}
